﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Windows.Forms;

    [StandardModule]
    internal sealed class CheckActiveModule
    {
        public static bool CheckActive(string strKey)
        {
            bool flag2 = false;
            bool flag3 = false;
            bool flag4 = false;
            bool flag5 = false;
            LVYModule.GetUserRight(ref flag5, ref flag3, ref flag4, ref flag2, strKey, modGeneral.H_USERNAME);
            return flag5;
        }

        public static bool StartCheck(string strKey)
        {
            bool flag=false;
            try
            {
                flag = CheckActive(strKey.Trim());
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                MessageBox.Show(exception1.ToString());
                ProjectData.ClearProjectError();
            }
            return flag;
        }
    }
}

